Optimal. Leaf size=85 \[ \frac {a^3 d (e x)^{1+m}}{e (1+m)}+\frac {a^2 b d (e x)^{2+m}}{e^2 (2+m)}-\frac {a b^2 d (e x)^{3+m}}{e^3 (3+m)}-\frac {b^3 d (e x)^{4+m}}{e^4 (4+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {76}
\begin {gather*} \frac {a^3 d (e x)^{m+1}}{e (m+1)}+\frac {a^2 b d (e x)^{m+2}}{e^2 (m+2)}-\frac {a b^2 d (e x)^{m+3}}{e^3 (m+3)}-\frac {b^3 d (e x)^{m+4}}{e^4 (m+4)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 76
Rubi steps
\begin {align*} \int (e x)^m (a+b x)^2 (a d-b d x) \, dx &=\int \left (a^3 d (e x)^m+\frac {a^2 b d (e x)^{1+m}}{e}-\frac {a b^2 d (e x)^{2+m}}{e^2}-\frac {b^3 d (e x)^{3+m}}{e^3}\right ) \, dx\\ &=\frac {a^3 d (e x)^{1+m}}{e (1+m)}+\frac {a^2 b d (e x)^{2+m}}{e^2 (2+m)}-\frac {a b^2 d (e x)^{3+m}}{e^3 (3+m)}-\frac {b^3 d (e x)^{4+m}}{e^4 (4+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 87, normalized size = 1.02 \begin {gather*} \frac {d (e x)^m \left (-x (a+b x)^3+\frac {a (5+2 m) x \left (a^2 \left (6+5 m+m^2\right )+2 a b \left (3+4 m+m^2\right ) x+b^2 \left (2+3 m+m^2\right ) x^2\right )}{(1+m) (2+m) (3+m)}\right )}{4+m} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 84, normalized size = 0.99
method | result | size |
norman | \(\frac {a^{3} d x \,{\mathrm e}^{m \ln \left (e x \right )}}{1+m}+\frac {a^{2} b d \,x^{2} {\mathrm e}^{m \ln \left (e x \right )}}{2+m}-\frac {b^{3} d \,x^{4} {\mathrm e}^{m \ln \left (e x \right )}}{4+m}-\frac {a \,b^{2} d \,x^{3} {\mathrm e}^{m \ln \left (e x \right )}}{3+m}\) | \(84\) |
gosper | \(\frac {d \left (e x \right )^{m} \left (-b^{3} m^{3} x^{3}-a \,b^{2} m^{3} x^{2}-6 b^{3} m^{2} x^{3}+a^{2} b \,m^{3} x -7 a \,b^{2} m^{2} x^{2}-11 m \,x^{3} b^{3}+a^{3} m^{3}+8 a^{2} b \,m^{2} x -14 a \,b^{2} m \,x^{2}-6 b^{3} x^{3}+9 a^{3} m^{2}+19 a^{2} b m x -8 a \,b^{2} x^{2}+26 a^{3} m +12 a^{2} b x +24 a^{3}\right ) x}{\left (4+m \right ) \left (3+m \right ) \left (2+m \right ) \left (1+m \right )}\) | \(172\) |
risch | \(\frac {d \left (e x \right )^{m} \left (-b^{3} m^{3} x^{3}-a \,b^{2} m^{3} x^{2}-6 b^{3} m^{2} x^{3}+a^{2} b \,m^{3} x -7 a \,b^{2} m^{2} x^{2}-11 m \,x^{3} b^{3}+a^{3} m^{3}+8 a^{2} b \,m^{2} x -14 a \,b^{2} m \,x^{2}-6 b^{3} x^{3}+9 a^{3} m^{2}+19 a^{2} b m x -8 a \,b^{2} x^{2}+26 a^{3} m +12 a^{2} b x +24 a^{3}\right ) x}{\left (4+m \right ) \left (3+m \right ) \left (2+m \right ) \left (1+m \right )}\) | \(172\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 85, normalized size = 1.00 \begin {gather*} -\frac {b^{3} d x^{4} e^{\left (m \log \left (x\right ) + m\right )}}{m + 4} - \frac {a b^{2} d x^{3} e^{\left (m \log \left (x\right ) + m\right )}}{m + 3} + \frac {a^{2} b d x^{2} e^{\left (m \log \left (x\right ) + m\right )}}{m + 2} + \frac {\left (x e\right )^{m + 1} a^{3} d e^{\left (-1\right )}}{m + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 177 vs.
\(2 (85) = 170\).
time = 1.68, size = 177, normalized size = 2.08 \begin {gather*} -\frac {{\left ({\left (b^{3} d m^{3} + 6 \, b^{3} d m^{2} + 11 \, b^{3} d m + 6 \, b^{3} d\right )} x^{4} + {\left (a b^{2} d m^{3} + 7 \, a b^{2} d m^{2} + 14 \, a b^{2} d m + 8 \, a b^{2} d\right )} x^{3} - {\left (a^{2} b d m^{3} + 8 \, a^{2} b d m^{2} + 19 \, a^{2} b d m + 12 \, a^{2} b d\right )} x^{2} - {\left (a^{3} d m^{3} + 9 \, a^{3} d m^{2} + 26 \, a^{3} d m + 24 \, a^{3} d\right )} x\right )} \left (x e\right )^{m}}{m^{4} + 10 \, m^{3} + 35 \, m^{2} + 50 \, m + 24} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 741 vs.
\(2 (75) = 150\).
time = 0.27, size = 741, normalized size = 8.72 \begin {gather*} \begin {cases} \frac {- \frac {a^{3} d}{3 x^{3}} - \frac {a^{2} b d}{2 x^{2}} + \frac {a b^{2} d}{x} - b^{3} d \log {\left (x \right )}}{e^{4}} & \text {for}\: m = -4 \\\frac {- \frac {a^{3} d}{2 x^{2}} - \frac {a^{2} b d}{x} - a b^{2} d \log {\left (x \right )} - b^{3} d x}{e^{3}} & \text {for}\: m = -3 \\\frac {- \frac {a^{3} d}{x} + a^{2} b d \log {\left (x \right )} - a b^{2} d x - \frac {b^{3} d x^{2}}{2}}{e^{2}} & \text {for}\: m = -2 \\\frac {a^{3} d \log {\left (x \right )} + a^{2} b d x - \frac {a b^{2} d x^{2}}{2} - \frac {b^{3} d x^{3}}{3}}{e} & \text {for}\: m = -1 \\\frac {a^{3} d m^{3} x \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} + \frac {9 a^{3} d m^{2} x \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} + \frac {26 a^{3} d m x \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} + \frac {24 a^{3} d x \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} + \frac {a^{2} b d m^{3} x^{2} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} + \frac {8 a^{2} b d m^{2} x^{2} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} + \frac {19 a^{2} b d m x^{2} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} + \frac {12 a^{2} b d x^{2} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} - \frac {a b^{2} d m^{3} x^{3} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} - \frac {7 a b^{2} d m^{2} x^{3} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} - \frac {14 a b^{2} d m x^{3} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} - \frac {8 a b^{2} d x^{3} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} - \frac {b^{3} d m^{3} x^{4} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} - \frac {6 b^{3} d m^{2} x^{4} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} - \frac {11 b^{3} d m x^{4} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} - \frac {6 b^{3} d x^{4} \left (e x\right )^{m}}{m^{4} + 10 m^{3} + 35 m^{2} + 50 m + 24} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 273 vs.
\(2 (85) = 170\).
time = 1.14, size = 273, normalized size = 3.21 \begin {gather*} -\frac {b^{3} d m^{3} x^{4} x^{m} e^{m} + a b^{2} d m^{3} x^{3} x^{m} e^{m} + 6 \, b^{3} d m^{2} x^{4} x^{m} e^{m} - a^{2} b d m^{3} x^{2} x^{m} e^{m} + 7 \, a b^{2} d m^{2} x^{3} x^{m} e^{m} + 11 \, b^{3} d m x^{4} x^{m} e^{m} - a^{3} d m^{3} x x^{m} e^{m} - 8 \, a^{2} b d m^{2} x^{2} x^{m} e^{m} + 14 \, a b^{2} d m x^{3} x^{m} e^{m} + 6 \, b^{3} d x^{4} x^{m} e^{m} - 9 \, a^{3} d m^{2} x x^{m} e^{m} - 19 \, a^{2} b d m x^{2} x^{m} e^{m} + 8 \, a b^{2} d x^{3} x^{m} e^{m} - 26 \, a^{3} d m x x^{m} e^{m} - 12 \, a^{2} b d x^{2} x^{m} e^{m} - 24 \, a^{3} d x x^{m} e^{m}}{m^{4} + 10 \, m^{3} + 35 \, m^{2} + 50 \, m + 24} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.42, size = 174, normalized size = 2.05 \begin {gather*} -{\left (e\,x\right )}^m\,\left (\frac {b^3\,d\,x^4\,\left (m^3+6\,m^2+11\,m+6\right )}{m^4+10\,m^3+35\,m^2+50\,m+24}-\frac {a^3\,d\,x\,\left (m^3+9\,m^2+26\,m+24\right )}{m^4+10\,m^3+35\,m^2+50\,m+24}+\frac {a\,b^2\,d\,x^3\,\left (m^3+7\,m^2+14\,m+8\right )}{m^4+10\,m^3+35\,m^2+50\,m+24}-\frac {a^2\,b\,d\,x^2\,\left (m^3+8\,m^2+19\,m+12\right )}{m^4+10\,m^3+35\,m^2+50\,m+24}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________